<template>
    <div>爷爷组件</div>
    <hr>
    <provideParent/>
</template>


<script setup>
import ProvideParent from './ProvideChildren.vue';
import {ref,provide} from 'vue'
let money =ref(10000)
let updateMoney = (value) =>{
    money.value+=value
}
provide('money',money)
provide('updatemoney',updateMoney)
</script>